# vs code 常用插件和设置

# 设置

{
    "git.ignoreMissingGitWarning": true,
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
    "powermode.enabled": true,
    "powermode.enableShake": false,
    // 自动识别文件类型
    "emmet.syntaxProfiles": {
        "vue-html": "html",
        "vue": "html"
    },
    // "materialTheme.fixIconsRunning": false,
    "editor.minimap.enabled": true,
    "window.zoomLevel": 1,
    "powermode.presets": "flames",
    "prettier.tabWidth": 4,
    "explorer.confirmDelete": false,
    "editor.wordWrap": "on",
    // "php.executablePath": "D:\\PHPWAMP\\PHPWAMP\\phpwamp\\server\\php-7.0.1\\php.exe",
    // "php.validate.executablePath": "D:\\PHPWAMP\\PHPWAMP\\phpwamp\\server\\php-7.0.1\\php.exe",
    "markdown.styles": [
        "https://jasonm23.github.io/markdown-css-themes/foghorn.css"
    ],
    "markdownlint.config": {
        "MD013": false,
        "MD033": false,
        "MD001": false,
        "MD041": false
    },
    "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "emmet.includeLanguages": {
        "javascript": "javascriptreact"
    },
    "vsicons.dontShowNewVersionMessage": true,
    "vsicons.projectDetection.autoReload": true,
    "git.path": "D:\\Git\\cmd\\git.exe",
    "prettier.disableLanguages": [],
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "beautify.language": {
        "js": {
            "type": [
                "javascript",
                "json",
                "jsonc"
            ],
            "filename": [
                ".jshintrc",
                ".jsbeautifyrc"
            ]
        },
        "css": [
            "css",
            "scss"
        ],
        "html": [
            "htm",
            "html",
            "vue"
        ]
    },
    // "editor.fontFamily": "Lucida Console,Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace",
    "editor.fontFamily": "Lucida Console, Dengxian",
    "editor.lineHeight": 24,
    "workbench.colorTheme": "Material Theme",
    "editor.fontWeight": "500",
    "editor.fontSize": 14,
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript", //  用eslint的规则检测js文件
        {
            "language": "vue", // 检测vue文件
            "autoFix": true //  为vue文件开启保存自动修复的功能
        },
        {
            "language": "html",
            "autoFix": true
        }
    ],
    "prettier.eslintIntegration": true,
    "search.followSymlinks": false
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

# 常用插件

  • vscode-icons
  • Vetur
  • Prettier - Code formatter
  • Power Mode
  • open in browser
  • Material Theme
  • Path Intellisense
  • HTML CSS Support
  • Auto Close Tag
  • Auto Rename Tag
  • Material Icon Theme
  • CSS Peek
  • File Peek
  • Bracket Pair Colorizer
  • Chinese (Simplified) Language Pack for Visual Studio Code